from functools import reduce


def add(a, b):
    return a + b


a = [1, 3, 5, 7, 9]
print((reduce(add,a)))
